package com.suntianci.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName StockBlockDomain
 * @Author 孙天赐
 * @Date 2024/12/27 10:32
 * @Description TODO: 国内板块数据的实体领域类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "国内板块数据的实体领域类")
public class StockBlockDomain {

    /**
     * 公司数量
     */
    @ApiModelProperty(value = "公司数量")
    private Integer companyNum;

    /**
     * 交易量
     */
    @ApiModelProperty(value = "交易量")
    private Long tradeAmt;

    /**
     * 板块编码
     */
    @ApiModelProperty(value = "板块编码")
    private String code;

    /**
     * 平均价格
     */
    @ApiModelProperty(value = "平均价格")
    private BigDecimal avgPrice;

    /**
     * 板块名称
     */
    @ApiModelProperty(value = "板块名称")
    private String name;

    /**
     * 当前日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "当前日期")
    private Date curDate;

    /**
     * 交易总金额
     */
    @ApiModelProperty(value = "交易总金额")
    private BigDecimal tradeVol;

    /**
     * 涨幅
     */
    @ApiModelProperty(value = "涨幅")
    private BigDecimal updownRate;
}
